Destructuring operator in javaScript